-- GENERATED SPELL FOR [Lost One Cook] --


function spell0_1106(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1106', 17000, 1)
end

function spell1_1106(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1106', 2339, 1)
end

function Sorts_1106(pUnit, Event)
local choix_sorts_1106 = math.random(0, 1)
if choix_sorts_1106 == 0 then
pUnit:RegisterEvent('spell0_1106', 1, 1)
end
if choix_sorts_1106 == 1 then
pUnit:RegisterEvent('spell1_1106', 1, 1)
end
end

function mob1106_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1106', math.random(1500, 3000), 1)
end

function mob1106_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1106_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1106_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1106, 1, 'mob1106_Action')
RegisterUnitEvent(1106, 2, 'mob1106_Leave')
RegisterUnitEvent(1106, 3, 'mob1106_Kill')
RegisterUnitEvent(1106, 4, 'mob1106_Die')
